package com.chen.fegin;

import com.chen.config.auth.OAuth2FeignConfig;
import com.chen.dto.CoinDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Date: 2021/5/17 10:44 AM
 * @Version 1.0
 */
@FeignClient(value = "finance-server",
        configuration = OAuth2FeignConfig.class,
        path = "/coins",
        contextId = "coin")
public interface CoinFegin {

    @GetMapping("/getCoinByIds")
    Map<Long, CoinDto> getCoinByIds(@RequestParam("ids") List<Long> ids);

}
